﻿<?php $this->load->view('admin/_header1') ?>
<link rel="stylesheet" type="text/css" href="'<?=site_url('css/validator.css');?>'" />
<script language="javascript" type="text/javascript" src="<?php echo site_url('js/validator.js')?>"></script>
<div class="Main">
	<?php
	echo $title;
	echo form_open("admin/setting/dosetrebate",array("id" => "formset","onclick1"=>"return CheckFormSubmit(this);"))
	?>
	<table cellpadding=5px cellspacing=5 >
		<tr valign=top>
		<td><input type=radio name="CType" value="0"  <?php echo set_radio('CType', '0', $CType=="0"); ?>  ></td>
		<td><div class="bgc1">Rebate is not enabled set, settled at par value</div>
		</td>	
		</tr>
		<tr valign=top>
		<td><input type=radio name="CType" value="1" <?php echo set_radio('CType', '1', $CType=="1"); ?> ></td>
		<td><div class="bgc1">
		All direct debit rebate&nbsp;<input type=text name="Commi_1" class="txa" verify="N" desc="" value="<?=$CommSet->Commision1;?>" />&nbsp;point
		</div>
		*Rebate deducted directly set on the basis of the number of points<BR><BR>
		</td>
		</tr>
			
		<tr valign=top>
			<td><input type=radio name="CType" value="2" <?php echo set_radio('CType', '2', $CType=="2"); ?> ></td>
			<td><div class="bgc1">
			<table width=530 border=0>
				<tr><td width=82>Each point deduction</td>
					<td width=75>0-3%</td>
					<td width=75>3.1-5%</td>
					<td width=75>5.1-8%</td>
					<td width=75>8.1-10%</td>
					<td width=75>10.1%up</td>
				</tr>
				<tr><td></td>
					<td><input type=text name="Commi_2[]" class=txa verify="N" desc="" value="<?=$CommSet->Commision1;?>" />&nbsp;%</td>
					<td><input type=text name="Commi_2[]" class=txa verify="N" desc="" value="<?=$CommSet->Commision2;?>" />&nbsp;%</td>
					<td><input type=text name="Commi_2[]" class=txa verify="N" desc="" value="<?=$CommSet->Commision3;?>" />&nbsp;%</td>
					<td><input type=text name="Commi_2[]" class=txa verify="N" desc="" value="<?=$CommSet->Commision4;?>" />&nbsp;%</td>
					<td><input type=text name="Commi_2[]" class=txa verify="N" desc="" value="<?=$CommSet->Commision5;?>" />&nbsp;%</td>			
				</tr>
			</table>
			</div>Minus the number input box for the points. For different rebate, set different point deduction points. <BR>
 		For example: Set 8.1-10 2 point deduction, the actual rebate is 9, the client displays the rebate for the 7 (9-2)
		<BR><BR></td>
		</tr>
		
		
		<tr><td><input type=radio name="CType"  value="3" <?php echo set_radio('CType', '3', $CType=="3"); ?> ></td>
			
			<td><div class="bgc1">
			All rebates are <input type=text name="Commi_3" class="txa" verify="N" desc="" value="<?=$CommSet->Commision1;?>" />&nbsp;%
			</div></td>
		</tr>
		<!--
		<tr valign=top>
			<td><input type=radio name="CType" <?php echo set_radio('CType', '4', $CType=="4"); ?> value="4" ></td>
			<td><div class="bgc1">					
			<table width=530 border=0>
				<tr><td width=82>设置留点起点</td>
					<td width=75>0-3%</td>
					<td width=75>3.1-5%</td>
					<td width=75>5.1-8%</td>
					<td width=75>8.1-10%</td>
					<td width=75>10.1%以上</td>
				</tr>
				<tr><td></td>
					<td><input type=text name="Commi_4[]" class=txa verify="N" value="<?=$CommSet->Commision1;?>" />&nbsp;%</td>
					<td><input type=text name="Commi_4[]" class=txa verify="N" value="<?=$CommSet->Commision2;?>" />&nbsp;%</td>
					<td><input type=text name="Commi_4[]" class=txa verify="N" value="<?=$CommSet->Commision3;?>" />&nbsp;%</td>
					<td><input type=text name="Commi_4[]" class=txa verify="N" value="<?=$CommSet->Commision4;?>" />&nbsp;%</td>
					<td><input type=text name="Commi_4[]" class=txa verify="N" value="<?=$CommSet->Commision5;?>" />&nbsp;%</td>			
				</tr>
			</table>
			
			</div>*输入框中的数字为显示的返点数，即客户查询页面显示的点数。<br/>
				例如：设置8.1-10区间为6，那么当实际返点位于8.1-10区间时，客户显示的返点均为6。

			
			</td>
		</tr>
		-->	
		
		<tr><td></td>
			<td align=center><input type=submit name=bbb class=btn5 value="save" /></td>
		</tr>
		
		<tr height=30>
			<td></td>
			<td>&nbsp;<span class="txred"><?=$message?></span></td>
			<td></td>
		</tr>
	</table>
	<?php
	echo form_close();
	?>
	<script language="javascript">
		$(document).ready(function(){
		});
		
	</script>
</div>
<?php $this->load->view('admin/_footer1') ?>